//
//  TJTableViewCell.m
//  BaoDian
//
//  Created by mac on 2024/7/17.
//

#import "TJTableViewCell.h"

@implementation TJTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
//        self.contentView 不能有颜色
        self.selectedBackgroundView = [[UIView alloc] initWithFrame:self.frame];
        self.selectedBackgroundView.backgroundColor = [UIColor tj_selectCellBackgroundColor];
        [self settingSubView];

    }
    return self;
}

- (void)settingSubView {
    
}

- (void)setSelectCellBackgroundColor:(UIColor *)selectCellBackgroundColor {
    _selectCellBackgroundColor = selectCellBackgroundColor;
    self.selectedBackgroundView.backgroundColor = selectCellBackgroundColor;
}

@end
